/*
 * sysmo 客户端发送的警报消息
 * Copyright (C) 2009  YuLicheng
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.sysmo.server.node.item;

/**
 * 
 * 此类表示了客户端发送的警报消息。消息中保存了警报ID、所属的监控项以及
 * 警报消息内容。
 *
 * @author YuLicheng
 */
public class Warning {

    private int id;
    private String message;
    private int itemID;

    /**
     * 创建一个警告实例。
     *
     * @param id 警告ID。
     * @param itemID 所属的监控项ID。
     * @param message 警告消息。
     */
    public Warning(int id, int itemID, String message) {
        this.id = id;
        this.itemID = itemID;
        this.message = message;
    }

    /**
     * 获取警报ID
     *
     * @return 警报ID。
     */
    public int getId() {
        return id;
    }

    /**
     * 获取警报消息。
     *
     * @return 警报消息。
     */
    public String getMessage() {
        return message;
    }

    /**
     * @return the itemID
     */
    public int getItemID() {
        return itemID;
    }

    /**
     *
     */
    public void remove() {
        
    }
}
